package com.lz.yz.reward.enumeration;

/**
 * ${DESCRIPTION}
 *
 * @author LiXainYi
 * @create 2017-12-18 11:00
 **/
public enum ComplaintStatus {
    PROCESS("投诉处理中",1),
    OVERRULE("投诉已驳回",2),
    PASS("投诉已通过",3);
    private String status;
    private Integer statusValue;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getStatusValue() {
        return statusValue;
    }

    public void setStatusValue(Integer statusValue) {
        this.statusValue = statusValue;
    }
    ComplaintStatus(String status, Integer statusValue) {
        this.status = status;
        this.statusValue = statusValue;
    }
    public static ComplaintStatus getComplaintTypeByIndex(int index) {
        for (ComplaintStatus c : ComplaintStatus.values()) {
            if (c.getStatusValue() == index) {
                return c;
            }
        }
        return null;
    }

}
